﻿<div class="layui-container fly-marginTop">
    <div class="fly-panel fly-panel-user">
        <!--登录注册的Tab-->
        <div class="layui-tab layui-tab-brief">
            <!--选项卡的标题-->
            <ul class="layui-tab-title">
                <li class="layui-this">
                    登录
                </li>
                <li>
                    <a href="@Url.Action("Register")">注册</a>
                </li>
            </ul>
            
            <!--选项卡内容区域-->
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    @using (Ajax.BeginForm("Login", "Account", new AjaxOptions()
                    {
                        OnBegin = "onBegin",
                        OnFailure = "onFailure",
                        OnSuccess = "onSuccess",
                        OnComplete = "onLoginComplete"
                    }))
                    {
                        <!--用户登录表单-->
                        <div class="layui-form layui-form-pane">
                            <div class="layui-form-item">
                                <label class="layui-form-label" for="txt_LoginName">手机/邮箱</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="LoginName" class="layui-input" id="txt_LoginName" autocomplete="off" lay-verify="required" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label" for="txt_Password">密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="Password" id="txt_Password" class="layui-input" autocomplete="off" lay-verify="required" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <input type="checkbox" name="IsRember" value="true" lay-skin="primary" title="记住密码" />
                            </div>
                            <div class="layui-form-item">
                                <button class="layui-btn" lay-submit>立即登录</button>
                            </div>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.cache.module={
        moduleName:'account',
        pageName:'login'
    }
</script>